home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_playambient.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  56 lines

  1. # Jones 3D Cog Script
  2. #
  3. # 00_PlayAmbient.cog
  4. #
  5. # Plays a sound at a one or more locations
  6. #
  7. # [IS]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    timer
  14.     message    startup
  15.  
  16.     thing        soundPos0        nolink
  17.     thing        soundPos1        nolink
  18.     thing        soundPos2        nolink
  19.     thing        soundPos3        nolink
  20.     thing        soundPos4        nolink
  21.     thing        soundPos5        nolink
  22.     thing        soundPos6        nolink
  23.     thing        soundPos7        nolink
  24.  
  25.     sound        wav0
  26.  
  27.     float        minDist=-1
  28.     float        maxDist=-1
  29.     float        volume=1.0
  30.     int        cnt            local
  31. end
  32.  
  33. code
  34.  
  35. # ........................................................................................
  36.  
  37. startup:
  38.  
  39.     settimer(0.5);
  40.     return;
  41.  
  42. # ........................................................................................
  43.  
  44. timer:
  45.  
  46.     for (cnt = 0; cnt <= 7; cnt = cnt+1) 
  47.         {
  48.         // flags indicate looping & ambient
  49.         if (soundPos0[cnt] >= 0) PlaySoundThing(wav0, soundPos0[cnt], volume, minDist, maxDist, 0x045);
  50.         }
  51.         
  52.     return;
  53.  
  54. end
  55.  
  56.